import request from '@/utils/request'

// 查询退款支付单列表
export function listRefundOrder(query) {
  return request({
    url: '/purchasing/refundOrder/list',
    method: 'get',
    params: query
  })
}

// 查询退款支付单详细
export function getRefundOrder(paymentId) {
  return request({
    url: '/purchasing/refundOrder/' + paymentId,
    method: 'get'
  })
}

// 新增退款支付单
export function addRefundOrder(data) {
  return request({
    url: '/purchasing/refundOrder',
    method: 'post',
    data: data
  })
}

// 修改退款支付单
export function updateRefundOrder(data) {
  return request({
    url: '/purchasing/refundOrder',
    method: 'put',
    data: data
  })
}

// 删除退款支付单
export function delRefundOrder(paymentId) {
  return request({
    url: '/purchasing/refundOrder/' + paymentId,
    method: 'delete'
  })
}
